//
//  ZNWBLogin.swift
//  ZNWeibo
//
//  Created by FunctionMaker on 2017/8/10.
//  Copyright © 2017年 FunctionMaker. All rights reserved.
//

import Foundation

/// 全局的常量

/// 应用ID
let ZNWBClientID = "3332219360"
/// 应用Key
let ZNWBAppSecret = "36f94d0efd9b4d5828040cceda86005a"
/// 应用重定向地址
let ZNWBRedirectURI = "http://baidu.com"

/// 登录通知名称
let ZNWBLoginNotification = "ZNWBLoginNotification"
/// 注册通知名称
let ZNWBRegisterNotification = "ZNWBRegisterNotification"
/// 登录成功名称
let ZNWBLoginSuccessNotification = "ZNWBLoginSuccessNotification"

/// 配图视图外部间距
let ZNWBPicturesViewOutterMargin: CGFloat = 12
/// 配图视图内部间距
let ZNWBPicturesViewInnerMargin: CGFloat = 3
/// 配图视图的宽度
let ZNWBPicturesViewWidth: CGFloat = UIScreen.cz_screenWidth() - 2 * ZNWBPicturesViewOutterMargin
/// 每个配图的宽度(宽高相等)
let ZNWBPictureCellWidth = (ZNWBPicturesViewWidth - 2 * ZNWBPicturesViewInnerMargin) / 3

// 首页Cell高度缓存计算所有常量
/// Cell内部视图间距
let ZNWBCellInnerMargin: CGFloat = 12
/// Cell头像的高度
let ZNWBCellIconHeight: CGFloat = 34
/// Cell底部工具栏的高度
let ZNWBCellBottomViewHeight: CGFloat = 35
/// 原创微博正文字体
let ZNWBOrigCellContentFont = UIFont.systemFont(ofSize: 15)
/// 转发微博正文字体。增加了0.5的容限，iOS10字体有Bug。
let ZNWBRetweetedCellContentFont = UIFont.systemFont(ofSize: 14)
/// 微博正文预估大小，宽度为固定大小，高度尽可能大
let ZNWBCellContentBoundingSize = CGSize(width: ZNWBPicturesViewWidth, height: CGFloat(MAXFLOAT))

// 下拉刷新
/// 下拉刷新控件中袋鼠的默认显示比例
let ZNWBRefreshIconOriginalScale: CGFloat = 0.2
/// 下拉刷新控件中袋鼠的变大的拖拽距离
let ZNWBRefreshIconScalerOffset: CGFloat = 23
/// 下拉刷新临界点
let ZNWBRefreshOffset: CGFloat = 122

